<?php
/**
 * Created by PhpStorm.
 * User: 诸葛非卿
 * Date: 2019-06-01
 * Time: 0:50
 */
namespace app\home\controller;


class Helpinfo extends Base{

    public function index(){
        $list = \app\admin\model\Help::getList(150);
        if(request()->isAjax()){
            if(empty($list)){
                message('没有更多信息','','error');
            }
        }
        return $this->fetch(__FUNCTION__,[
            'list' => $list
        ]);
    }
    public function helpdetail(){
        $id=params('id');
        
        $data = db('help')->find($id);
        
        return $this->fetch(__FUNCTION__,[
            'data' => $data
        ]);
    }

    public function detail(){
        
        $data = db('kefu')->select();
        
        return $this->fetch(__FUNCTION__,[
            'item' => $data[0]
        ]);
    }
}